<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<style>
    .static{
        color: white;
    }
    .class1{
        background: #97CBFF;
        font-size: 20px;
        text-align: center;
        line-height: 100px;
    }
    .class2{
        width: 200px;
        height: 100px;
    }
</style>

<div id="app">
    <div class="static" v-bind:class="{ class1: boole1, 'class2': boole2 }">{{ date }}</div>
</div>

<!--引入vue文件-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
    const vm = Vue.createApp({
        data(){
            return {
                boole1: true,
                boole2: false,
                date: "青青河边草春风吹又生"
            }
        }
    }).mount('#app');
</script>

</body>
</html>
